<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--框架必需start-->
<script type="text/javascript" src="../js/jquery-1.4.js"></script>
<script type="text/javascript" src="../js/framework.js"></script>
<link href="../css/import_basic.css" rel="stylesheet" type="text/css"/>
<link  rel="stylesheet" type="text/css" id="skin"/>
<!--框架必需end-->

<!--多选下拉框start-->
<script type="text/javascript" src="../js/form/multiselect.js"></script>
<!--多选下拉框end-->

<!--表单验证脚本start-->
	<script src="../js/form/validationEngine-cn.js" type="text/javascript"></script>
	<script src="../js/form/validationEngine.js" type="text/javascript"></script>
<!--表单验证脚本end-->

<script type="text/javascript">

$(function(){
	$("#button_2").toggle(function(){
		$(this).val("取消");
		$("#iframe_1").show(1000);
	},
	function(){
		$(this).val("拍照");
		$("#iframe_1").hide(1000);
	});
});


$(function(){
	$("#button_1").toggle(function(){
		$(this).val("取消");
		$("#table_1").show(1000);
	},
	function(){
		$(this).val("拍照");
		$("#table_1").hide(1000);
	});
});

function confirm() {
    document.verifyform.action="mvehicleVisit!mvehicleOutVerify";
    document.verifyform.method="post";
    document.verifyform.submit();
}



</script>

</head>
<body>
<div class="position">
	<div class="center">
	<div class="left">
	<div class="right">
		<span>当前位置：军车出场</span>
	</div>
	</div>
	</div>
</div>
<div id="scrollContent">

	<div class="box1" panelWidth="800">
	<form action="mvehicleVisit!mvehicleOut" name="verifyform" method="post">
	<fieldset>
		<legend>扫描访客单</legend>

		<table class="tableStyle" transMode="true" footer="normal">
		<tr>
		<td width="21%">车牌号：</td>
		<td width="25%"><input type="text" id="mvehicleId" name="vehicle.vehicleId" class=" validate[required,custom[vehicleNum]]" /><span class="star">*</span></td>
		<td><input type="hidden" id="visitorId" name="visitor.visitorId"/></td>
		<td width="20%"><input type="button" value="扫描" onclick="confirm()"/></td>
		<td></td>
		</tr>
		</table>


		<%--<table class="tableStyle" transMode="true" footer="normal" id="table_1" style="display:none" >--%>
		<table class="tableStyle" transMode="true" footer="normal" >
		<tr>
				<td width="21%">姓名：</td>
				<td width="25%">
	                <s:property value="milvehVisAllData.visitor.visitorName" />
				</td>
				<td width="20%">电话号码：</td>
				<td>
					<s:property value="milvehVisAllData.visitor.visitorTel" />
				</td>
			</tr>
			<tr>
				<td>车牌号：</td>
				<td>
				<s:property value="milvehVisAllData.vehicle.vehicleId" />
				</td>
				<td>车类型：</td>
				<td>
				<s:property value="milvehVisAllData.vehicle.type" />
				</td>
			</tr>
			<tr>
				<td>身份证号：</td>
				<td>
				<s:property value="milvehVisAllData.visitor.visitorId" />
				</td>
				<td>进入时间：</td>
				<td>
				<s:date name="milvehVisAllData.mvehicleTable.mvehicleIntime" format="yyyy-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</table>

	</fieldset>
	</form>

<form action="mvehicleVisit!mvehicleOut" method="post">
	<fieldset>
		<legend>信息登记</legend>
		<table class="tableStyle" transMode="true" footer="normal">
	
			<tr>
				<td>车牌号：</td>
				<td>
				<input type="text" class=" validate[required,custom[vehicleNum]]" name="vehicle.vehicleId"/><span class="star">*</span>
				</td>
				<td></td>
				<td>

				</td>
			</tr>
			<tr>
				<td width="21%">照片：</td>
				<td width="25%">
				<iframe id="iframe_1" src="../images/3.jpg" style="display:none"></iframe>
				</td>
				<td></td>
				<td width="37%">
				<input type="button" value="拍照" id="button_2" />
				</td>
			</tr>
		</table>
	</fieldset>


	<div class="padding_top10">
		<table class="tableStyle" transMode="true">
			<tr>
				<td colspan="4">
					<input type="submit" value=" 提 交 "/>
					<input type="reset" value=" 重 置 "/>
				</td>
			</tr>
		</table>
	</div>
	</form>
	</div>
</div>
</body>
</html>